package com.panda.ziwei.dto;

import lombok.Getter;
import lombok.Setter;

/**
 * 农历
 */

@Getter
@Setter
public class LunarCalendarDto {

    private int yearNum;//农历年份，数字形式
    private String yearChinese;//农历年份，中文数字形式，例如二零二零
    private String yearGan;//农历年份天干
    private int yearGanIndex;//农历年份天干下标
    private String yearZhi;//农历年份地支
    private int yearZhiIndex;//农历年份地支下标

    private int monthNum;//农历月份，数字形式
    private String monthChinese;//农历月份，中文形式，例如三月、冬月、腊月
    private String monthGan;//农历月份天干
    private int monthGanIndex;//农历月份，天干下标
    private String monthZhi;//农历月份地支
    private int monthZhiIndex;//农历月份地支下标

    private int day;//农历日期
    private String dayChinese;//农历日期，中文数字形式
    private String dayGan;//农历日期天干
    private int dayGanIndex;//农历日期天干下标
    private String dayZhi;//农历日期地支
    private int dayZhiIndex;//农历日期地支下标

    private String hourGan;//农历时辰天干
    private int hourGanIndex;//农历时辰天干下标
    private String hourZhi;//农历时辰地支
    private int houZhiIndex;//农历时辰地支下标

    private String animal;//属相

    @Override
    public String toString() {
        StringBuilder res = new StringBuilder();
        res.append(yearChinese);
        res.append("年 ");
        res.append(monthChinese);
        res.append("月 ");
        res.append(dayChinese);
        res.append(" 属");
        res.append(animal);
        res.append(" ");
        res.append(yearGan);
        res.append(yearZhi);
        res.append("年 ");
        res.append(monthGan);
        res.append(monthZhi);
        res.append("月 ");
        res.append(dayGan);
        res.append(dayZhi);
        res.append("日 ");
        res.append(hourGan);
        res.append(hourZhi);
        res.append("时");
        return res.toString();
    }

}
